//
//  HomePublicController.m
//  KYProject
//
//  Created by Roman on 16/12/21.
//  Copyright © 2016年 Roman. All rights reserved.
//

#import "HomePublicController.h"

@interface HomePublicController ()

@end

@implementation HomePublicController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"公益";
    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor],NSFontAttributeName:[UIFont systemFontOfSize:15]};
    
    UIWebView *web = [[UIWebView alloc]init];
    [self.view addSubview:web];
    
    [web mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
    
    NSURL *url = [NSURL URLWithString:@"http://gongyi.qq.com"];
    
    [web loadRequest:[NSURLRequest requestWithURL:url]];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
